using System;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using MvcMall.Core.Domains;

namespace MvcMall.Data.NHibernateMaps
{
    public class UserLoginLogMap:IAutoMappingOverride<UserLoginLog>
    {
        public void Override(AutoMapping<UserLoginLog> mapping)
        {
            mapping.References(m => m.User).Column("UserId");
        }
    }
}